From: Matthieu Gallien Date: Thu, 17 Apr 2025 17:18:40 +0000 (+0200) Subject: refactor(logs): improve logs around deletions and permissions X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2^2~10^2~2 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22Program/%22http:/www.example.com/cgi/%22https:/%22Program?a=commitdiff_plain;h=29ccf5950d2329304aa3ab7969d9c396771a3d93;p=nextcloud-desktop.git refactor(logs): improve logs around deletions and permissions Signed-off-by: Matthieu Gallien --- diff --git a/src/common/filesystembase.cpp b/src/common/filesystembase.cpp index 9cae216b0..c6dcb49d1 100644 --- a/src/common/filesystembase.cpp +++ b/src/common/filesystembase.cpp @@ -550,6 +550,7 @@ bool FileSystem::remove(const QString &fileName, QString *errorString) qCWarning(lcFileSystem()) << "File is already deleted" << fileName; return false; } + qCInfo(lcFileSystem()) << "delete" << fileName; } catch (const std::filesystem::filesystem_error &e) { diff --git a/src/libsync/filesystem.cpp b/src/libsync/filesystem.cpp index 002a031de..52e8f11ad 100644 --- a/src/libsync/filesystem.cpp +++ b/src/libsync/filesystem.cpp @@ -281,6 +281,7 @@ bool FileSystem::removeRecursively(const QString &path, const std::function securityDescriptor; @@ -569,7 +571,7 @@ bool FileSystem::isFolderReadOnly(const std::filesystem::path &path) noexcept const auto currentAceHeader = reinterpret_cast(currentAce); if ((ACCESS_DENIED_ACE_TYPE == (currentAceHeader->AceType & ACCESS_DENIED_ACE_TYPE))) { - qCInfo(lcFileSystem()) << "detected access denied ACL: assuming read-only folder:" << path.wstring().c_str(); + qCInfo(lcFileSystem()) << "detected access denied ACL: assuming read-only folder:" << QString::fromStdWString(path.wstring()); return true; } }